<?php

namespace app\manage\validate;

use app\common\validate\BaseValidate;

class Admin extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
        'user_login' => 'require',
    ];
    protected $message = [
        'id.require' => '缺少必要参数id',
        'user_login.require' => '登录账号名不能为空',
    ];
    protected $scene = [
        'add' => ['user_login',],
        'edit' => ['id',],
        'info' => ['id',],
        'delete' => ['id',],
    ];
}